package com.dcm.user.service;

import com.dcm.user.dto.UserDto;
import com.dcm.user.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * [用户]
 *
 * @author : [pengrongsheng]
 * @createTime : [2021/4/2]
 */
public interface UserService {
    /**
     * 查询所有
     *
     * @return
     */
    List<UserEntity> findAll();

    /**
     * 添加 注册
     *
     * @param user
     * @return
     */
    void register(UserEntity user);

    /**
     * 登录
     *
     * @param user
     * @return
     */
    UserEntity login(UserDto user);
}
